<!DOCTYPE html>
<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo-default.css"/>
	<link rel="stylesheet" type="text/css" href="css/tabeladebito.css"/>        
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type="text/javascript" src="js/cliente.saldo.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <title>Cadastro</title>
    </head>
    <body>
        <div id='centro'>
            <p>Consultar Debito</p>
            <fieldset>
            <form name="debito" id="debito" method="post" action="../control/ControleListarVendasCliente.php">
                <table>
                   <thead>
                   <tr>
                        <th id="td1">CPF</th>
                        <th id="td2">Nome</th>
                        <th id="td3">Saldo</th>
                   </tr>
                   </thead>
                    <tbody>                    
                    <tr>
                        <td><input type="text" name="cpf" id="cpfnum"  class="input-text" maxlength="11" autofocus></td>
                        <td><input type="text" name="cliente" id="cliente"  class="nome" readonly/></td>
                        <td><input type="text" name="saldo" id="saldo"  class="input-text" readonly></td>
                    </tr>
                    </tbody>
                </table>                
                <input type='submit' id="compras" name='controle' value='Mostrar compras'/>
                <button type="button" id="voltar" name='voltar' value='voltar'>Voltar</button>
           </form>
           </fieldset>
            <br>
            <fieldset  id='listacompras'>
            <table id='s'>
            <thead>
                <tr id='cortopotabela'>
                    <th id='td4'>Data</th>
                    <th id='td5'>Nome</th>
                    <th id='td6'>Qtd</th>
                    <th id='td7'>Valor Total</th>
                </tr>
            </thead>
            <tbody id='lista'>
            </tbody>
        </table>
        </fieldset>            
        </div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>